<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/include.inc.jsp"%>
<form id="pagerForm" method="post" action="/management/book/edit/${book.id}">
	<input type="hidden" name="pageNum" value="1" />
</form>

<div class="pageContent">
<form method="post" action="<c:url value='/management/article/update?navTabId=articleLiNav&callbackType=closeCurrent'/>" class="pageForm required-validate" 
onsubmit="return iframeCallback(this, navTabAjaxDone)" enctype="multipart/form-data">
	<input type="hidden" name="wechatArticle.id" value="${vo.wechatArticle.id}"/>
	<input type="hidden" name="wechatArticle.picUrl" value="${vo.wechatArticle.picUrl }">
		<div class="pageFormContent" layoutH="57">
			<div class="unit">
				<label>文章名称</label> 
				<input type="text" name="wechatArticle.title" value="${vo.wechatArticle.title}" class="textInput required" maxlength="128" size="64" />
			</div>

			<div class="unit">
				<label>外部连接</label> 
				<input type="text" name="wechatArticle.url" value="${vo.wechatArticle.url}" class="textInput " maxlength="128" size="64" />
			</div>
			<div class="unit">
				<label>文章图片</label> 
				<input type="file" name="myfiles" class="textInput " maxlength="128" size="64" />
			</div>
			<div class="unit">
				<label>文章描述</label>
				<textarea class="editor" name="wechatArticle.description" rows="15" cols="80" tools="simple">${vo.wechatArticle.description}"</textarea>
			</div>
			<div class="unit">
				<label>所属关系</label> 
					<c:forEach var="item" items="${menuList}">
						<c:if test="${item.wechatMenu.code eq vo.wechatArticle.menuCode}">
					   ${item.wechatMenu.name }
					</c:if>
					</c:forEach>
			</div>
			<div class="unit">
				<label>状态</label> 
				${vo.wechatArticle.status}
			</div>
			<div class="unit">
				<label>创建时间</label>
				<fmt:formatDate value="${vo.wechatArticle.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
			</div>
			<div class="unit">
				<label>修改时间</label>
				<fmt:formatDate value="${vo.wechatArticle.updateTime}" pattern="yyyy-MM-dd HH:mm:ss" />
			</div>
		</div>

	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
</form>
</div>